<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名 - Feng&#39;s Blog - 大灰鼠的博客</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="Feng" /><meta name="description" content="刚在阿里云论坛里看到了好东西，一定要把它“记”下来，方便自己、方便大伙哈！ 原文如下： 一．挂载系统盘 1.执行 fdisk -l 命令，发现没有 /dev/xvdb1 标明您的云服务" /><meta name="keywords" content="feng, 折腾人生, 电脑维修, 手机玩转, 技术心得, 拆机, 网站建设, 快乐悠悠, uu, 悠悠, 博客" />






<meta name="generator" content="Hugo 0.76.5 with theme even" />


<link rel="canonical" href="https://uu126.gitee.io/2014/177.html" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.c7bc1becf36bcf6a9ebd25d2947e43a2eb745ddb0c9a32b43126fd7fa460c351.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名" />
<meta property="og:description" content="刚在阿里云论坛里看到了好东西，一定要把它“记”下来，方便自己、方便大伙哈！ 原文如下： 一．挂载系统盘 1.执行 fdisk -l 命令，发现没有 /dev/xvdb1 标明您的云服务" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://uu126.gitee.io/2014/177.html" />
<meta property="article:published_time" content="2014-12-20T16:19:40+00:00" />
<meta property="article:modified_time" content="2014-12-20T16:19:40+00:00" />
<meta itemprop="name" content="CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名">
<meta itemprop="description" content="刚在阿里云论坛里看到了好东西，一定要把它“记”下来，方便自己、方便大伙哈！ 原文如下： 一．挂载系统盘 1.执行 fdisk -l 命令，发现没有 /dev/xvdb1 标明您的云服务">
<meta itemprop="datePublished" content="2014-12-20T16:19:40+00:00" />
<meta itemprop="dateModified" content="2014-12-20T16:19:40+00:00" />
<meta itemprop="wordCount" content="1395">



<meta itemprop="keywords" content="CentOS,阿里云," />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名"/>
<meta name="twitter:description" content="刚在阿里云论坛里看到了好东西，一定要把它“记”下来，方便自己、方便大伙哈！ 原文如下： 一．挂载系统盘 1.执行 fdisk -l 命令，发现没有 /dev/xvdb1 标明您的云服务"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Feng&#39;s Blog</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">Home</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">Archives</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">Tags</li>
      </a><a href="/links/">
        <li class="mobile-menu-item">Links</li>
      </a><a href="/ly/">
        <li class="mobile-menu-item">Ly</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">About</li>
      </a>
  </ul>
</nav>
  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Feng&#39;s Blog</a>
</div>

<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">Home</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">Archives</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">Tags</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/links/">Links</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/ly/">Ly</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">About</a>
      </li>
  </ul>
</nav>
    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名</h1>

      <div class="post-meta">
        <span class="post-time"> 2014-12-20 </span>
        <div class="post-category">
            <a href="/categories/%E7%BD%91%E7%AB%99%E5%BB%BA%E8%AE%BE/"> 网站建设 </a>
            </div>
          <span class="more-meta"> 约 1395 字 </span>
          <span class="more-meta"> 预计阅读 3 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content always-active">
    <nav id="TableOfContents"></nav>
  </div>
</div>
    <div class="post-content">
      <p>刚在阿里云论坛里看到了好东西，一定要把它“记”下来，方便自己、方便大伙哈！<br>
原文如下：<br>
<span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>一．挂载系统盘</b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">1.执行 fdisk -l 命令，发现没有 /dev/xvdb1 标明您的<span id="rlt_7">云服务</span>无数据盘</span></span></p>
</blockquote>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">2.fdisk /dev/xvdb  命令，对数据盘进行分区</span></span></p>
</blockquote>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">3.依次输入“n”，“p”“1”，两次回车，“wq”（保存），分区就开始了</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">4.使用“fdisk -l”命令可以看到，新的分区xvdb1已经建立完成了。</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5.mkfs.ext3 /dev/xvdb1 格式化新分区</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">6.通过vi编辑器修改写入新分区信息，vi /etc/fstab</span></span></p>
</blockquote>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">  修改的内容为：</span></span></p>
</blockquote>
<blockquote>
<p><a href="http://uu126.cn/wp-content/uploads/2014/12/Fid_207-207_1968974297916064_e2e06549617089c.png" alt="CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名" title="CentOS配置web服务器流程挂载、ftp、apache、mysql、二级域名" target="_blank"  rel="nofollow" ><img  class="alignnone size-full wp-image-1304"  class="lazyload" data-src="http://uu126.cn/wp-content/uploads/2014/12/Fid_207-207_1968974297916064_e2e06549617089c.png" src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg" onerror="imgError(this)"  alt="Fid_207-207_1968974297916064_e2e06549617089c" width="697" height="117" /></a></p>
</blockquote>
<noscript>
  <img class="alignnone size-full wp-image-1304" src="http://uu126.cn/wp-content/uploads/2014/12/Fid_207-207_1968974297916064_e2e06549617089c.png" alt="Fid_207-207_1968974297916064_e2e06549617089c" width="697" height="117" /></a></p></blockquote>
</noscript>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">  </span></span><span style="font-size: medium;"><span style="font-family: 微软雅黑;">  vi编辑器命令： i：启动键盘输入  Esc键：退出编辑模式  :wq 保存并退出</span></span></p>
</blockquote>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">7.然后使用  cat /etc/fstab 命令查看，出现 /dev/xvdb1  /mnt ext3 信息表示写入成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">8.使用  mount -a  命令挂载新分区</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">9.用  df -h  命令查看</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>二．在<span id="rlt_9">Linux</span>系统根目录下创建<span id="rlt_1">网站</span>目录</b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@iZ235hqjjjlZ ~]# cd /              (返回系统根目录)</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@iZ235hqjjjlZ /]# mkdir web</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@iZ235hqjjjlZ /]# cd web</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@iZ235hqjjjlZ web]# mkdir eoair</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@iZ235hqjjjlZ web]# mkdir eoccc    </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">目录结构：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">+ web</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  - eoair</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  - eoccc</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>三．安装vsftp，并<span id="rlt_4">配置</span>帐号依次分派到网站ftp目录中</b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">1.cd /   返回到系统根目录</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2.ps -ef|grep vsftpd 判断是否暗转了vsftpd</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  返回 root      1039   958  0 22:12 pts/0    00:00:00 grep vsftpd 表示未安装</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2. yum install vsftpd -y  安装vsftpd</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">3. 编辑配置文件 vim /etc/vsftpd/vsftpd.conf </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  anonymous_enable=YES  改为  ON</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">4.chkconfig &ndash;level 35 vsftpd on  将ftp服务加入到系统<span id="rlt_3">自</span>启动</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">   vsftpd          0:off   1:off   2:off   3:on    4:off   5:on    6:off   35项为on表示完成</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5. cd /web/   进入网站目录</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">6. useradd eoairftp -s /sbin/nologin -d /web/eoair/   将ftpeoair 用户权限加入到 web下eoair下</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">7. passwd eoairftp  设置ftpeoair用户的密码，输入两次</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">8. chown eoairftp eoair  将用户权限加入到文件中</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  ls -lrst   查看是否成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  drwxr-xr-x 2 eoairftp root 4096 Dec 18 22:11 eoair   表示添加成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">9.service vsftpd start    开启vsftp服务</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">好了 现在可以通过 eoairftp 用户名 <span id="rlt_6">上传</span>文件到  web/eoair</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>注：添加另一ftp帐号和对应目录 eoccc</b></span></span><strong>ftp</strong> <strong>-&gt; /web/eoccc</strong></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">1.cd web  加入网站目录    mkdir eoccc   创建api目录</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2.useradd eoapiftp -s /sbin/nologin -d /web/eoccc/   将eoapiftp 用户权限加入到 web 下eoccc下</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">3. passwd eoapiftp  设置eoairftp用户的密码，输入两次</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">4. chown eoapiftp eoccc  将用户权限加入到文件中</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5. service vsftpd restart 重启vdftpd</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>四．安装apache 和 <span id="rlt_8">php</span></b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">1.yum install httpd -y  由于 CentOS 已经封装了 Apache，直接运行安装</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2. chkconfig &ndash;levels 235 httpd on  配置系统让 Apache 随系统启动</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">3. chkconfig &ndash;list  确认 Apache 235为on</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">4. yum install php -y  安装 PHP</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5. service httpd restart   重启apache服务器</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>五．设置网站子站点对应的目录</b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;"><a href="http://www.eoair.com">www.eoair.com</a> -&gt; /web/eoair   ccc.eoair.com -&gt; /web/eoccc</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">1.vim /etc/httpd/conf/httpd.conf  编辑配置：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">   #LoadModule rewrite_module modules/mod_rewrite.so”这行，去掉前面的“#”</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">   查找所有“AllowOverride None”，修改为“AllowOverride All”</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">   在文件最后输入以下语句：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">       RewriteEngine on</span></span></p>
</blockquote>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">　　RewriteMap lowercase int:tolower</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">　　RewriteMap vhost txt:/etc/httpd/<span style="text-decoration: underline;">vhost.map</span></span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">　　RewriteCond ${lowercase:%{SERVER_NAME}} ^(.+)$</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">　　RewriteCond ${vhost:%1} ^(/.<em>)$</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">　　RewriteRule ^/(.</em>)$ %1/$1</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2.新建一个<span style="text-decoration: underline;">vhost.map</span>文件：vim /etc/httpd/vhost.map 写入二级<span id="rlt_2">域名</span>目录指向</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">eoair.com /web/eoair    </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;"><a href="http://www.eoair.com">www.eoair.com</a> /web/eoair</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">ccc.eoair.com /web/eoccc</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">3.最后 重启Apache </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">  service httpd restart</span></span></p>
</blockquote>
<p><span style="font-size: large;"><span style="font-family: 微软雅黑;"><b>六．安装 mysql</b></span></span></p>
<blockquote>
<p><span style="font-size: medium;"><span style="font-family: 微软雅黑;">首先来进行 MySQL 的安装。打开超级终端，输入：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@localhost ~]# yum install mysql mysql-server</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">安装完毕，让 MySQL 能够随系统自动启动：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@localhost ~]# chkconfig &ndash;levels 235 mysqld on</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@localhost ~]# /etc/init.d/mysqld start</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">设置 MySQL 数据 root 账户的密码：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@localhost ~]# mysql_secure_installation</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">当出现如下提示时候直接按回车：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">Enter current password for root</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">出现如下输入Y再次回车：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">Set root password? [Y/n]</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">出现如下提示输入你需要设置的密码，回车后在输入一次确认：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">New password:</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">接下来还会有四个Y确认，分别是：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">Remove anonymous users? [Y/n]Disallow root login remotely? [Y/n]Remove test database and access to it? [Y/n]Reload privilege tables now? [Y/n]</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">重启</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">[root@localhost ~]# /etc/init.d/mysqld restart</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">注：让mysql支持外网连接图形化界面</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">将 msql <span id="rlt_5">数据库</span>中的user表中的 Host 字段修改为 % </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">1. 首先连接mysql数据库： mysql -p3306 -uroot -p123456  出现 mysql-&gt; 表示连接成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">2. 选择mysql配置数据库 use mysql; 显示Database changed 表示成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">3.  update user set  Host='%' where Host=&lsquo;localhost&rsquo;;   修改Host 为%</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">4.  select Host,User,Password from user;  查询修改后的结果：</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">      +&mdash;&mdash;&mdash;&ndash;+&mdash;&mdash;+&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-+</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">      | Host      | User | Password                                  |</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">      +&mdash;&mdash;&mdash;&ndash;+&mdash;&mdash;+&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;-+</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">      | %         | root | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">出现  %  表示成功</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5.  重启mysql服务 ： service mysqld restart</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">5.  最后使用图形管理测试连接</span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">注：如果需要修改mysql用户名可以使用 </span></span><br>
<span style="font-size: medium;"><span style="font-family: 微软雅黑;">update user set  User=&lsquo;eoaroot&rsquo; where User=&lsquo;root&rsquo;;</span></span></p>
</blockquote>
<p>注：本文转载自阿里云论坛</p>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">Feng</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2014-12-20
        
    </span>
  </p>
  
  
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/wechat.png">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="https://cdn.uu126.cn/hugo/alipay.png">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      <div class="post-tags">
          <a href="/tags/centos/">CentOS</a>
          <a href="/tags/%E9%98%BF%E9%87%8C%E4%BA%91/">阿里云</a>
          </div>
      <nav class="post-nav">
        <a class="prev" href="/2014/178.html">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">联想IdeaPad、Lenovo系列使用的LS-15电源线召回通知</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/2014/176.html">
            <span class="next-text nav-default">阿里云1218活动喜中500元代金券</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  
  <div id="vcomments"></div>
  <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script type="text/javascript">
    new Valine({
        el: '#vcomments' ,
        appId: '5sMkTX4FLjetFnfbOhaDTCDJ-9Nh9j0Va',
        appKey: '25KXCqIqAN142RQn4fBrsI87',
        notify:  false ,
        verify:  false ,
        avatar:'mm',
        placeholder: '说点什么吧...',
        visitor:  false 
    });
  </script>

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
  <a href="https://uu126.gitee.io/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="copyright-year">  
  Hosted by <a href="https://pages.coding.me" style="font-weight: bold">Coding Pages</a> + <a href="https://cloud.tencent.com/redirect.php?redirect=1005&cps_key=4e78216aea817227ff0c96d93a00fd4b" target="_blank" rel="nofollow">腾讯云 + </a><a href="https://console.upyun.com/register/?invite=S1JeTquHL" target="_blank" rel="nofollow"><span class="with-love"><img src="https://cdn.lancn.cn/images/upyun.png" style="width:45px;vertical-align:middle;" alt="又拍云存储"></span></a>
   </span> 
  <div class="busuanzi-footer">
    <a target="_blank"  href="http://www.beian.miit.gov.cn">浙ICP备11026647号-3</a><span class="post-meta-divider"> | </span><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33088102001325"><span class="with-love"><img src="https://cdn.uu126.cn/icon-police.png" style="width:14px;"></span> 浙公网安备33088102001325号</a>
  </div>
  <span class="power-by">
    由 <a class="hexo-link" href="https://gohugo.io">Hugo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>
   

  

  <span class="copyright-year">
    &copy; 
    2012 - 
    2020<span class="heart"><i class="iconfont icon-heart"></i></span><span>Feng</span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  <script src="/lib/highlight/highlight.pack.js?v=20171001"></script>
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c12618f9a600c40bd024996677e951e64d3487006775aeb22e200c990006c5c7.js"></script>








</body>
</html>
